#2.求解1-100 能被3和5同时整除的数字的和

sum = 0 #定义一个和
a = 1
while a<101:
    if a%3 == 0 and a%5==0:
     sum += a
    a += 1
print(sum)

